<template>
    <div class="box">
        <ul>
        <li v-for="item.list" :key="item.id">
            <div>
                <p><img :src="item.image" alt=""></p>
                <p class="van-multi-ellipsis--l2">{{ item.title }}</p>
                <p style="color: red;">￥20</p>
            </div>
        </li>
      </ul>
    </div>
 
    
</template>
<script setup>
    import request from '@/utils/requset.js';
    import { onMounted,ref } from "vue";
    const list=ref([])
    onMounted(()=>{
        request.get('/list',{
            params:{
                pagination:1, pageNum:40
            }
        }).then(res=>{
            if(res.data==200){
                list.value=res.data.data
            }
        })
    })

</script>